<?php
use yii\helpers\Html;

common\services\MenuSve::getBreadcrumbs($this);
?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <title><?= Html::encode(OC['system_name'] . ' - ' . $this->title) ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <?= Html::csrfMetaTags() ?>
    <link rel="stylesheet" href="/layui/css/layui.css?v=<?= OC['assets_cache_version'] ?>">
    <link rel="stylesheet" href="/css/site.css?v=<?= OC['assets_cache_version'] ?>">
    <link rel="shortcut icon"
          href="<?= HTTP_DOMAIN_ASSETS . DS . OC['system_ico'] ?>?v=<?= OC['assets_cache_version'] ?>"
          type="image/x-icon">
    <script src="/js/jquery-3.2.1.min.js"></script>
    <script src="/layui/layui.js?v=<?= OC['assets_cache_version'] ?>"></script>
    <script src="/js/common.js?v=<?= OC['assets_cache_version'] ?>"></script>
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <!--顶部菜单 start-->
    <?= $this->render('header.php') ?>
    <!--顶部菜单 end-->
    <!--左侧菜单 start-->
    <?= $this->render('left.php') ?>
    <!--左侧菜单 end-->
    <!--面包屑 start-->
    <div class="breadcrumb-demo">
        <span class="layui-breadcrumb">
            <a href="/home/index">首页</a>
            <?php foreach ($this->params['breadcrumbs'] as $breadcrumb): ?>
                <a><cite><?= $breadcrumb ?></cite></a>
            <?php endforeach; ?>
        </span>
    </div>
    <!--面包屑 end-->
    <!--主体 start-->
    <div class="layui-tab layui-tab-brief main-demo">
        <!--内容 start-->
        <?= $content ?>
        <!--内容 end-->
    </div>
    <!--主体 end-->
    <!--页脚 start-->
    <?= $this->render('footer.php') ?>
    <!--页脚 end-->
</div>
</body>
<script>
    //注意：导航 依赖 element 模块，否则无法进行功能性操作
    //设定layui-this来指向当前页面分类。
    layui.use('element', function () {
        layui.element();
    });
</script>
</html>
